<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ include file="/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Biblioteca Virtual</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
      <link href="css/civilized.css" rel="stylesheet" type="text/css" />
     <script type="text/javascript" language="javascript" src="scripts/script.js"></script>
</head>
<body>
    <div id="outer">
         <%@ include file="menuSuperiorAdmin.jsp"%>
        <div id="content">
            <div id="primaryContentContainer">
                <div id="primaryContent">
                
		<h2>Registro de Libros</h2>
                
                <form:form modelAttribute="libro"  enctype="multipart/form-data" >
              
                    <div class="clear"></div>
                <blockquote>
                <table>
                    <tr> 
                        <td>
                            <label>T&iacute;tulo :</label>
                        </td>
                        <td >
                              <%--<input type="text"  class="txt"/>--%>
                              <form:input path="nombre" class="txt"/> 
                        </td>
                        <td >&nbsp;</td>
                        <td >&nbsp;</td>
                    </tr>
                    <tr> 
                        <td>
                            <label >Descripci&oacute;n :</label>
                        </td>
                        <td >
                                <%--<input type="text"  class="txt"/> --%>
                              <form:input path="descripcion" class="txt"/>
                        </td>
                        <td ></td>
                        <td >&nbsp;</td>
                    </tr>
                    <tr>
                      <td>Unidades :</td>
                      <td >
                         <%-- <input type="text"  class="txt"/> --%>
                            <form:input path="unidades" class="txt"/>
                      </td>
                      <td >&nbsp;</td>
                      <td >&nbsp;</td>
                    </tr>
                    <tr>
                      <td>Imagen :</td>
                      <td >
                          <%-- <input type="file" class="txt"/>--%>
                       <form:hidden path="idlibro" /><form:input path="imagen" class="txt"/> 
                      </td>
                      <td ></td>
                      <td ></td>
                    </tr>
                    <tr> 
                        <td>
                            <label >Estado :</label>
                        </td>
                        <td >
                           <%--  <input type="checkbox" value="Activo" />--%>
                              <form:checkbox path="activo" value="activo"   />
                        </td>
                        <td >&nbsp;</td>
                        <td >&nbsp;</td>
                    </tr>
                    <tr>
                        <td> 
                            <label >Categor&iacute;a :</label>
                        </td>
                        <td valign="middle" >
                       
			  <form:select path="categoria.idcategoria" >
                                    <form:options items="${listaCategorias}" itemLabel="descripcion" itemValue="idcategoria" />
                            </form:select>
                            <input type="submit" id="guardar" value="Grabar" style="cursor:pointer" class="btn" />
                        </td>
                        <td valign="middle" >&nbsp;</td>
                        <td valign="middle" >&nbsp;</td>
                    </tr>
                </table>
                </blockquote>
            </form:form> 
            </div>
            </div>
           <div id="secondaryContent">
               <h3>Libros</h3>
               <ul>
    				<li><a href="libros.htm"  >Listado de Libros</a></li>
               </ul>
            </div>
      <div class="clear"></div>
	</div>
	 <%@ include file="/common/footer.jsp"%>
</div>
</body>
</html>

